# 定义一个高阶函数, 实现加, 减, 乘, 除计算器功能;
# highfunc(a, b, func)
def highfunc(a, b, func):
    print(func(a, b))

def add(a, b):
    return a+b

def minus(a, b):
    return a-b

def multiply(a, b):
    return a*b

def divide(a, b):
    return a/b


highfunc(3,4,add)
highfunc(3,4,minus)
highfunc(3,4,multiply)
highfunc(3,4,divide)
